package com.bodu.system.enums;

/**
 * @author gaoya
 * @Description 系统类型枚举
 * @date 2022 - 10 - 13 22:32:45
 */
public enum StorageTypeEnums {

    /**
     * 本地存储
     */
    STORAGE_LOCALE(0, "本地存储"),

    /**
     * 七牛存储
     */
    STORAGE_QINIU(1, "七牛"),

    /**
     * 阿里云存储
     */
    STORAGE_ALI(2, "阿里云"),

    /**
     * 腾讯云存储
     */
    STORAGE_TENCENT(3, "腾讯云");

    private Integer value;

    private String label;

    StorageTypeEnums(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public static String getStatusValues(Integer value) {
        StorageTypeEnums[] enums = StorageTypeEnums.values();
        for (StorageTypeEnums e1 : enums) {
            if (e1.getValue().equals(value)) {
                return e1.getLabel();
            }
        }
        return "";
    }
}
